import { useNavigate } from "react-router-dom";

export const useRouter = () => {
    const navigateTo = useNavigate()

    const routeTo = (path: string) => {
        navigateTo(path)
    }

    return {
        routeTo
    }
}